ChangeLog 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536
  1. 2006-02-17 Chris Toshok <[email protected]>
  2. * OdbcDataReader.cs: remove VisibleFieldCount property.
  3. 2005-11-21 Senganal T <[email protected]>
  4. * OdbcTransaction.cs
  5. * OdbcCommandBuilder.cs
  6. * OdbcParameterCollection.cs
  7. * OdbcDataReader.cs
  8. * OdbcFactory.cs
  9. * OdbcDataAdapter.cs
  10. * OdbcParameter.cs
  11. Added stubs and other changes for ADO.NET 2.0 compatibility
  12. 2005-10-14 Senganal T <[email protected]>
  13. * OdbcColumn.cs : Changed the mapping of OdbcType.Char to string
  14. instead of char. Fixes bug #67269
  15. 2005-10-14 Senganal T <[email protected]>
  16. * OdbcDataReader.cs: Added Text and NText datatypes to the list
  17. of datatypes checked by GetValue () method. Fixes bug #75032
  18. 2005-10-14 Sureshkumar T <[email protected]>
  19. * OdbcDataReader.cs (GetValue): Use SQL_CHAR for Numeric as
  20. temporary fix.
  21. * OdbcParameter.cs (CopyValue): Add support for Numeric & Decimal
  22. parameters.
  23. 2005-10-08 Sureshkumar T <[email protected]>
  24. * OdbcCommand.cs (BindParameters): Copy the parameter Value after
  25. binding.
  26. * OdbcParameter.cs: re-implemented the native buffer handling and
  27. odbc type handling.
  28. * NativeBuffer.cs: A native buffer class to hold pointer to native
  29. memory.
  30. * OdbcTypeMap.cs (OdbcTypeMap): structure to hold different odbc
  31. types and the default mapping.
  32. * OdbcTypeConverter.cs: Simplified mapping between different odbc
  33. types using switch-case.
  34. * libodbc.cs (SQLBindParameter): use only one entry point and use
  35. IntPtr instead of ref.
  36. 2005-08-20 Gert Driesen <[email protected]>
  37. * OdbcDataReader.cs: Marked GetPrimaryKeysBySQLStatistics unsafe.
  38. This fixes the build on Windows (using csc).
  39. 2005-08-09 Sureshkumar T <[email protected]>
  40. * OdbcDataReader.cs: GetSchemaTable (): set values for the column
  41. attributes using SQLColAttribute. If SQLPrimaryKeys does not
  42. yeild, try SQLStatistics. Optimized primary key logic.
  43. * libodbc.cs: Added api SQLStatistics and constants.
  44. * OdbcParameter.cs: setBuffer (): allocate a short int buffer for
  45. OdbcType.SmallInt. fixes bug #75600.
  46. 2005-08-08 Gert Driesen <[email protected]>
  47. * OdbcConnection.cs: Marked Init helper method private.
  48. * OdbcCommand.cs: Marked BindParameters helper method private.
  49. 2005-08-08 Sureshkumar T <[email protected]>
  50. * OdbcDataReader.cs: Implemented Dispose pattern. Cache
  51. schematable for same result set. don't free command's statements
  52. if the command is prepared.
  53. * OdbcConnection.cs: Open (): set disposed to false so that close
  54. will be called in Dispose.
  55. * OdbcCommand.cs:
  56. - Prepare (): Split SQLPrepare and SQLBind so that
  57. already prepared statements can be reused with new parameter
  58. values.
  59. - ExecSQL (): create new statement handle, if not prepared
  60. and there are no parameters. if there are parameters, prepare and
  61. use.
  62. - Implemented Dispose pattern
  63. - Streamlined the allocation and de-allocation of statement
  64. handles.
  65. 2005-08-05 Sureshkumar T <[email protected]>
  66. * OdbcDataReader.cs: RecordsAffected: get value from command.
  67. GetSchemaTable (): set IsExpression based on BaseTableName. set
  68. AllowDBNull to false if the column is PK.
  69. * OdbcCommand.cs: correct UpdatedRowSource is returned. whitespace
  70. changes to conform to standard.
  71. * OdbcCommandBuilder.cs: Implemented.
  72. * OdbcParameter.cs: Direction is set to Input by default.
  73. 2005-07-22 Sureshkumar T <[email protected]>
  74. * OdbcParameter.cs: updated attributes & attribute descriptions to
  75. match with masterinfos.
  76. * OdbcDataReader.cs: NextRow (): made private.
  77. 2005-07-21 Sureshkumar T <[email protected]>
  78. * OdbcDataReader.cs: GetValue (): added case for OdbcType.Bit. and
  79. Formatting corrections. Fixes bug #75574.
  80. 2005-07-07 Sureshkumar T <[email protected]>
  81. * OdbcTypeConverter.cs: ConvertToSqlType & ConvertToSqlCType: map
  82. VarChar to SQL_C_CHAR and SQL_VARCHAR respective instead of WCHAR
  83. and WVARCHAR as temporary fix.
  84. * OdbcParameter.cs: setBuffer: string types need not be quoted.
  85. 2005-06-28 Sureshkumar T <[email protected]>
  86. * OdbcDataReader.cs: GetPrimaryKeys (): use the length indicator
  87. for GetString, otherwise, it creates a string of length 255. Use
  88. ArrayList for keys as the columns are different from the selected
  89. columns. fixes bug #75263.
  90. 2005-06-09 Sureshkumar T <[email protected]>
  91. * OdbcDataReader.cs: GetValue (): return decimal in case of odbc
  92. type Numeric. Move the temp buffer logic inside.
  93. * OdbcTypeConverter.cs: map SQL_TYPE.NUMERIC to SQL_C_TYPE.CHAR by
  94. now, since PgSql driver seems not to accept NUMERIC c type. Other
  95. database anyway, provides NUMERIC datatype as DECIMAL.
  96. 2005-05-31 Sureshkumar T <[email protected]>
  97. * OdbcParameter.cs: setBuffer (): for numeric type, the buffer
  98. parameter should be a packed decimal struct. fixes bug #75041.
  99. 2005-04-05 Sureshkumar T <[email protected]>
  100. * OdbcParameter.cs: SqlBindParameter requires the last parameter
  101. to be a ref.
  102. * libodbc.cs: API change for above.
  103. 2005-04-04 Sureshkumar T <[email protected]>
  104. * OdbcDataReader.cs: Ignore BaseTableName & BaseColumnName
  105. properties while building Schema information as most drivers
  106. ignores these properties. e.g. PostgreSQL.
  107. 2005-03-24 Sureshkumar T <[email protected]>
  108. Appasamy <[email protected]>
  109. * OdbcColumn.cs: IsStringType: OdbcType.Char is also of type
  110. String.
  111. * OdbcDataReader.cs: GetSchemaTable: Get Additional info using
  112. SQLColAttribute. Don't pad with spaces in GetColAttributeStr.
  113. 2005-03-24 Sureshkumar T <[email protected]>
  114. * OdbcDataReader.cs:
  115. - GetValue: Decode only outsize length for SQL_C_TYPE.CHAR type in
  116. SQLGetData.
  117. - GetOrdinal: Perform case insensitive lookup if sensitive lookup
  118. fails.
  119. 2005-03-22 Sureshkumar T <[email protected]>
  120. Appsamy <[email protected]>
  121. * libodbc.cs (System.Data.Odbc): Added enum FieldIdentifier. Added
  122. library functions SQLPrimaryKeys, SQLBindCol and SQLColAttribute.
  123. * OdbcDataReader.cs: Implemented GetPrimaryKeys to get the primary
  124. keys associated with resultset using SQLPrimaryKeys.
  125. 2005-03-15 Sureshkumar T <[email protected]>
  126. * OdbcConnection.cs: re-throw error on exception in Open method.
  127. 2005-03-11 Sureshkumar T <[email protected]>
  128. * OdbcConnection.cs : notify state change through event. clean up
  129. handles in case any exception while opening a connection. NET_2_0
  130. uses base class's OnStateChange handler.
  131. 2005-03-10 Sureshkumar T <[email protected]>
  132. Migrated core classes to derive from ProviderBase instead of
  133. implementing IDb* interfaces. Most part of these files have been
  134. branched with #if NET_2_0/ONLY_1_1. Make sure any changes works
  135. with both the profiles.
  136. * OdbcFactory.cs: Concrete Factory for DbProviderFactory. Factory
  137. to generate Connection,Command,etc.
  138. * OdbcConnectionFactory.cs: Concrete factory for DbConnectionFactory.
  139. * OdbcTransaction.cs: migration and overrides.
  140. * OdbcCommandBuilder.cs: migration and overrides.
  141. * OdbcDataReader.cs: --do--. no command behavior member as it will
  142. be maintained in base provider class.
  143. * OdbcParameterCollection.cs: --do--. Now, local ArrayList is not
  144. maintained here, instead it is in base class. Most of the methods
  145. which operated on this list are not needed in NET_2_0.
  146. * OdbcConnection.cs: Migration. connectionString is maintained in
  147. DbConnectionBase class.
  148. * OdbcParameter.cs: Migration. Many of the local members like
  149. value,sourceColumn are maintained in DbParameterBase.
  150. * OdbcCommand.cs: Migration. commandText,timeout and
  151. commandTimeOut are maintained in DbCommandBase class.
  152. 2005-03-10 Sureshkumar T <[email protected]>
  153. * OdbcType.cs: Added enums for SQL_TYPE & SQL_C_TYPE.
  154. * libodbc.cs: Accept SQL_C_TYPE for driver
  155. parameters. SQLBindParameter takes two parameters SQL_TYPE and
  156. SQL_C_TYPE. This caused the whole lot of changes done in this
  157. revision.
  158. * OdbcParameter.cs: Set default values of OdbcType & DbType. Pass
  159. mapped SQL_TYPE and SQL_C_TYPE to SQLBindParameter. Increase
  160. buffer size by 2 for additional ' chars.
  161. * OdbcTypeConverter.cs: Added class to convert between OdbcType,
  162. SQL_TYPE, SQL_C_TYPE.
  163. * OdbcColumn.cs: Added private members for SQL_TYPE and
  164. SQL_C_TYPE. conversion from/to odbctype to/from SQL_TYPE is done
  165. through OdbcTypeConverter class.
  166. * OdbcDataReader.cs: use OdbcColumn's SQL_C_TYPE member. It keeps
  167. track of default mapping between odbctype, SQL_TYPE and
  168. SQL_C_TYPE. Move dataTableSchema.AcceptChanges inside if condition
  169. to avoid null reference exception.
  170. 2005-02-04 Sureshkumar T <[email protected]>
  171. Appasamy <[email protected]>
  172. * OdbcConnection.cs: Implemented properties database, datasource,
  173. serverversion and driver.
  174. * libodbc.cs: Added type OdbcInfo and native call SQLGetInfo.
  175. 2005-01-20 Sureshkumar T <[email protected]>
  176. * OdbcDataReader.cs: case for type OdbcType.Double added in
  177. GetValue. fixes bug #71173.
  178. Thanks to patch given by "Appasamy T" <[email protected]>
  179. 2005-01-19 Sureshkumar T <[email protected]>
  180. * OdbcType.cs: Change enum values for compatiability with MS.NET.
  181. * libodbc.cs: Change enum values for compatiability with
  182. MS.NET. Change calls into driver with native type.
  183. * OdbcDataReader.cs: Change enum values for compatiability with
  184. MS.NET. Change calls from/into driver with native type.
  185. 2005-01-18 Sureshkumar T <[email protected]>
  186. * OdbcDataReader.cs: GetOrdinal need not check for
  187. currentRow. Return -1 if column name is not found.
  188. fixes bug #71261. Thanks to patch given by "Appasamy T"
  189. <[email protected]>.
  190. 2005-01-13 Sureshkumar T <[email protected]>
  191. * OdbcDataReader.cs: Implement NextResultSet for multiple result
  192. set queries.
  193. * OdbcDataReader.cs: build column schema once creating reader and
  194. then for each Next result set. Thanks to
  195. [email protected] (Sebastien Robitaille) for
  196. pointing out this optimization (bugzilla #70530).
  197. * libodbc.cs: Added library calls SQLFreeStmt and SQLMoreResults
  198. for mutiple resultsets.
  199. 2005-01-10 Sureshkumar T <[email protected]>
  200. * OdbcDataReader.cs: Connection has to be closed only after
  201. Statement handle is freed. fixes bug #70048.
  202. 2005-01-07 Sureshkumar T <[email protected]>
  203. * OdbcDataReader.cs: Pass OdbcCType.SignedBigInt for accessing big
  204. int columns.
  205. * OdbcType.cs: Added a new enum for Odbc C DataTypes. This should
  206. essentially be passed to drivers, since the public OdbcType types
  207. differs from types expected in drivers in some cases.
  208. * libodbc.cs : Added a ODBC method which takes OdbcCType
  209. enumeration for SQLGetData for BigInt fields.
  210. fixes bug #65342.
  211. 2004-12-28 Duncan Mak <[email protected]>
  212. * libodbc.cs: Change all the DllImport attributes to point to
  213. "odbc32.dll" instead of "odbc32", because /etc/mono/config lists
  214. "odbc32.dll" (all other entries in the file have the .dll suffix
  215. as well, for consistency's sake, let's rename it here.)
  216. This fixes #70727.
  217. 2004-12-03 Sureshkumar T <[email protected]>
  218. * OdbcParameter.cs: Fixed a null reference exception when a
  219. parameter is created and its value is not set. #68750.
  220. 2004-11-26 Sureshkumar T <[email protected]>
  221. * OdbcParameter.cs: Fixed Parameter Size property as well as
  222. insufficient buffer errors. bug #68749.
  223. 2004-09-14 Sebastien Pouliot <[email protected]>
  224. * OdbcPermission.cs: Added internal constructor accepting an Odbc
  225. PermissionAttribute parameter (using base class protected ctor).
  226. * OdbcPermissionAttribute.cs: Copy now use the new OdbcPermission
  227. constructor.
  228. 2004-09-13 Sebastien Pouliot <[email protected]>
  229. * OdbcPermission.cs: Mostly completed (needs tests).
  230. * OdbcPermissionAttribute.cs: Completed.
  231. 2004-08-31 Umadevi S ([email protected])
  232. * OdbcDataReader.cs - Fixed Decimal parsing
  233. 2004-08-30 Umadevi S ([email protected])
  234. * OdbcType.cs - removed inheritance from short.
  235. 2004-08-27 Sureshkumar T ([email protected])
  236. * OdbcDataReader.cs - fixed bug #63539 - TINYINT ODBC datatype is converted into System.Byte
  237. 2004-08-26 Sureshkumar T ([email protected])
  238. * OdbcDataReader.cs - Date & DateTime GetValue fixed.
  239. GetBytes ordinal parameter passing fixed for BINARY in GetValue.
  240. 2004-08-20 Sureshkumar T ([email protected])
  241. * OdbcConnection.cs - correct handles are passed to OdbcError exception to trap the correct error
  242. 2004-08-04 Umadevi S ([email protected])
  243. * OdbcDataReader.cs - Fixed bug 61832 - Column names were not filled, due to which name based lookup of columns failed.
  244. 2004-08-04 Umadevi S ([email protected])
  245. * OdbcDataReader.cs - Fixed bug 61405 - Handling smallint column type.
  246. 2004-07-30 Sureshkumar T ([email protected])
  247. * OdbcCommand.cs: ExecuteNonQuery Closed statement handle to fix memory leak
  248. * OdbcDataReader.cs: Closed statement handle to fix memory leak
  249. Removed SQLState login in GetBytes coz OdbcError provides the same.
  250. 2004-07-29 Umadevi S ([email protected])
  251. * OdbcCommand.cs - Fixed bug 62046. ExecuteNonQuery implemented correctly
  252. 2004-07-28 Umadevi S ([email protected])
  253. * OdbcParameter.cs - fixed bug 61968. String values passed with quotes
  254. 2004-07-07 Umadevi S ([email protected])
  255. * OdbcConnection.cs - Allowed Close to be called multiple times
  256. - Implementation of Dispose method
  257. 2004-07-07 Umadevi S ([email protected])
  258. * OdbcCommand.cs : fixed set method for Transaction
  259. 2004-07-01 Sureshkumar T ([email protected])
  260. * OdbcCommand.cs : fixed reader problem with ExecuteScalar
  261. 2004-06-23 Sureshkumar T ([email protected])
  262. * OdbcConnection.cs: Fix: Moved env allocation to Open method.
  263. Disconnection & freeing handles are done in Close
  264. method to avoid simultaneous connections.
  265. * libodbc.cs : Added constants for odbc version.
  266. 2004-06-16 Gert Driesen <[email protected]>
  267. * OdbcError.cs: fixed serialization compatibility with MS.NET
  268. * OdbcErrorCollection.cs: fixed serialization compatibility with
  269. MS.NET
  270. * OdbcException.cs: fixed serialization compatibility with MS.NET
  271. 2004-06-16 Sureshkumar T ([email protected])
  272. * OdbcDataReader.cs: Added GetValue support for Sql Binary type to return byte array.
  273. Implemented GetBytes method.
  274. * libodbc.cs : Added enums, constants & imports for above fix.
  275. 2004-06-13 Gert Driesen <[email protected]>
  276. * OdbcDataReader.cs: changed GetData method to return IDataReader
  277. to match MS.NET
  278. 2004-06-09 Sureshkumar T ([email protected])
  279. * OdbcDataReader.cs: Removed checking of currentRow in GetName
  280. method
  281. 2004-06-04 Gert Driesen <[email protected]>
  282. * OdbcPermission.cs: moved Obsolete attribute to correct
  283. ctor
  284. 2004-06-02 Sureshkumar T ([email protected])
  285. * OdbcDataReader.cs: Implemented GetByte method. Fixed bug #58820
  286. 2004-06-02 Gert Driesen <[email protected]>
  287. * OdbcParameter.cs: added missing attributes
  288. * OdbcPermission.cs: added missing attributes
  289. * OdbcConnection.cs: fixes attribute, added missing attributes
  290. * OdbcInfoMessageEventArgs.cs: removed extra properties, fixed
  291. API compatibility with MS.NET
  292. * OdbcCommandBuilder.cs: use correct attributes
  293. 2004-05-20 Gert Driesen ([email protected])
  294. * OdbcPermissionAttribute.cs: change AllowMultiple and
  295. Inherited to match .NET
  296. 2004-05-17 Umadevi S ([email protected])
  297. * OdbcPermissionAttribute, OdbcPermission.cs - fixed missing methods
  298. 2004-05-17 Gert Driesen ([email protected])
  299. * OdbcCategoryAttribute.cs: fixed namespace
  300. * OdbcDataAdapter.cs: removed extra attributes
  301. * OdbcDescriptionAttribute.cs: fixed namespace
  302. 2004-05-14 Umadevi S ([email protected])
  303. * OdbcParameterConverter.cs -Added
  304. * OdbcParameter.cs - Added some attributes
  305. 2004-05-14 Umadevi S ([email protected])
  306. * OdbcDataAdapter.cs - Added Attributes
  307. 2004-05-14 Umadevi S ([email protected])
  308. * OdbcConnection.cs - Added Attributes
  309. 2004-05-14 Umadevi S ([email protected])
  310. * OdbcCommand.cs - Added Attributes
  311. 2004-05-14 Umadevi S ([email protected])
  312. * OdbcDataReader.cs - Added Attributes
  313. 2004-05-14 Umadevi S ([email protected])
  314. * Added Classes OdbcCategoryAttribute.cs, OdbcDescriptionAttribute.cs
  315. 2004-05-14 Umadevi S ([email protected])
  316. * Added Class OdbcCommandBuilder.cs
  317. 2004-05-14 Umadevi S ([email protected])
  318. * Added classes OdbcInfoMessageEventArgs.cs - with stubs
  319. * Added classes OdbcInfoMessageEventInfo.cs
  320. 2004-05-14 Umadevi S ([email protected])
  321. * Added classes OdbcPermission.cs, OdbcPermissionAttribute.cs - with stubs
  322. 2004-05-09 Gert Driesen ([email protected])
  323. * OdbcException.cs : removed ErrorCode property, fixing signature
  324. * OdbcErrorCollection.cs : added internal ctor, reduced
  325. accessibility of Add method to internal
  326. * OdbcCommand.cs: marked hstmt field private, remove setters for
  327. Parameters property
  328. * OdbcDataReader.cs: Added GetDate method, renamed GetTimeSpan to
  329. GetTime to match MS.NET, added HasRows stub
  330. 2004-05-09 Gert Driesen ([email protected])
  331. * OdbcError.cs:
  332. * OdbcErrorCollection.cs:
  333. * OdbcException.cs: fixed linefeeds to DOS to match other
  334. sources in System.Data.Odbc
  335. 2004-05-09 Gert Driesen ([email protected])
  336. * OdbcCommand.cs: No longer use OdbcConnection.Datareader, in order
  337. to fix signature of OdbcConnection
  338. * OdbcDataReader.cs: No longer use ODbcConnection.Datareader, in
  339. order to fix signature of OdbcConnection
  340. * OdbcConnection.cs: Signature fixes: removed DataReader property,
  341. added setter for ConnectionTimeout, made transaction internal
  342. * OdbcParameter.cs: reduced accessibility of Bind method to
  343. internal, added setter for IsNullable
  344. * OdbcParameterCollection.cs: made default ctor and Bind method
  345. internal
  346. 2004-05-09 Gert Driesen ([email protected])
  347. * OdbcCommand.cs: fixed linefeeds to DOS to match other sources
  348. in System.Data.Odbc
  349. 2004-05-09 Gert Driesen ([email protected])
  350. * OdbcTransaction.cs: fixed signature to match MS.NET
  351. 2004-05-09 Gert Driesen ([email protected])
  352. * OdbcType.cs: fixed typo UniqueIndetifier
  353. * OdbcColumn.cs : fixed typo UniqueIndetifier
  354. 2004-05-09 Gert Driesen ([email protected])
  355. * OdbcType.cs: fixed linefeeds to DOS to match other sources
  356. in System.Data.Odbc
  357. 2003-12-01 Gonzalo Paniagua Javier <[email protected]>
  358. * OdbcTransaction.cs: applied patch from Jeff Seifert that makes
  359. this class implement IDbTransaction interface.
  360. 2002-11-01 Daniel Morgan <[email protected]>
  361. * OdbcDataReader.cs: - uncommented code, but I put a FIXME:
  362. according to Brian, this does not work on MS .NET however, we need it
  363. for Mono for now. schemaRow.AcceptChanges(),
  364. - implement IEnumerable.GetEnumerator()
  365. * libodbc.cs: changed the DllImport from "odbc32.dll" to "odbc32"
  366. 2002-10-21 Gonzalo Paniagua Javier <[email protected]>
  367. * ChangeLog: added.
  368. * OdbcError.cs:
  369. * OdbcException.cs: added dummy implementation for these missing
  370. classes.