oibo8x / subsonicproject

Automatically exported from code.google.com/p/subsonicproject
0 stars 0 forks source link

SPs.GeneratedClass.GetReader() causes null ref exception #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a stored proc - no params
2. Generate and call stored proc using the GetReader() no arguments
3. Null Ref. Exception is thrown

What is the expected output? What do you see instead?
IDataReader

What version of the product are you using? On what operating system?
2.1 on XP

Northwind Unit Test to verify the problem:
Unit test was removed - http://subsonicproject.com/docs/Stored_Procedures
public void SP_Should_Execute_Without_Parameter()  bottom of the page

Possible code change

StoredProcedure class

Line: 195
IDataReader result = DataService.GetReader(_cmd);

When calling GetReader() – which by the way was removed from the unit 
tests causes an null exception. 

You could change it to 

IDataReader result = DataService.GetReader(Command);

Original issue reported on code.google.com by lance.fa...@gmail.com on 7 Apr 2009 at 8:19

GoogleCodeExporter commented 9 years ago
This issue was fixed in r473, which has not yet been included in a formal 
release yet. 
Either build the latest from the repository, or wait for the next release.

Original comment by johnshee...@gmail.com on 8 Apr 2009 at 5:55