npgsql 0.7beta3 的一个Bug (submitted)
2004-12-30 11:19
351 查看
Summary: | Parameters property of Command class doesnot support indexing by column name (ID: 1106) |
Bug Type: | Software bug |
Severity: | Serious |
Software Version: | 0.7beta3 |
Environment: | |
OS: windows 2003 DB:PostgreSQL 8.0.0-rc1 npgsql Package:Npgsql0.7beta3-bin | |
Description: | |
Parameters property of Command class doesnot support indexing by column name. When I use these everything is okey: IDbDataParameter idbPrmtr = cmd.Parameters[0] as IDbDataParameter; ... But throw exception (System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.) when: IDbDataParameter idbPrmtr = cmd.Parameters["ACertainColumnName"] as IDbDataParameter; Exception detail: ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.Collections.ArrayList.get_Item(Int32 index) at Npgsql.NpgsqlParameterCollection.System.Data.IDataParameterCollection.get_Item(String parameterName) at KampSln.DataAccess.DataBaseInfo.PutDataToDb(Int32 toDbObjIndex, DataTable data, String toTableName) in c:\documents and settings\v-kaiboh\my documents\visual studio projects\itemmaintainment\dataaccess\databaseinfo.cs:line 551 --- End of inner exception stack trace --- Another error: IDbDataParameter idbPrmtr = cmd.Parameters[0] as IDbDataParameter; is okey but cmd.Parameters[0].Value = 1; will throw an exception and say 'does not support index'. |
Bug report site
相关文章推荐
- PostgreSQL的.NET驱动程序Npgsql中参数对象的一个Bug
- PostgreSQL的.NET驱动程序Npgsql中参数对象的一个Bug
- PostgreSQL的.NET驱动程序Npgsql中参数对象的一个Bug
- .NET下WebBrowser的一个BUG以及其替代品——geckofx
- 一个Thinkphp、jquery ajax、IE10以下浏览器的BUG冲突问
- 2016最后一贴,终于调通一个测试示例,并发现一个BUG???
- java nio的一个严重BUG(转)
- 直接使用临时变量导致的一个bug记录
- 一个时序混乱导致的bug分析过程记录
- 转发同事总结:一个BUG引发的血案(结果篇)
- VC7.1 编译器的一个不大不小的bug
- 一个简单但又让人容易忽略的BUG
- jquery dialog width 有一个bug
- 漫谈程序猿系列:她发现了一个Bug……
- 解决了一个困惑很久的bug
- VC7.1 编译器的一个不大不小的bug
- 又发现昆仑通态的一个BUG
- jquery 选择器 在ie6下的一个bug
- 发现ie6一个bug
- git本地文件上传到远程仓库时,本地项目与远成仓库不是同一个项目的BUG