ChangeLog 18 KB

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