bbqchickenrobot / csharp-sqlite

Automatically exported from code.google.com/p/csharp-sqlite
Other
0 stars 0 forks source link

Unnamed SqliteParameter #117

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

When not providing a name for a SqliteParameter, it throws an exception on 
binding because the check is simply for "name != null" on line 220 of 
SqliteCommand.cs.
However, the "Sqlite3.sqlite3_bind_parameter_name" returns an empty string 
rather than null.
I would propose the check be "if ( !String.IsNullOrEmpty(name) )".

What version of the product are you using? On what operating system?
This is using the latest checkout of the repository.

Original issue reported on code.google.com by adamhewi...@gmail.com on 6 Jun 2011 at 4:37

GoogleCodeExporter commented 9 years ago
I agree and will implement your changes

Original comment by market.n...@gmail.com on 10 Jun 2011 at 4:19

GoogleCodeExporter commented 9 years ago

Original comment by market.n...@gmail.com on 10 Jun 2011 at 4:23