ChangeLog 17 KB

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