mtadayon / pypyodbc

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

Row objects don't raise KeyError for invalid fields #53

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Whilst it's nice to have the "act as a dict" feature of the response rows, it 
should really act like a dict!

What steps will reproduce the problem?
1. Select from a database
2. Iterate over the rows
3. Try to access a field by name that's not in the row

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

It should raise a KeyError.

It returns None instead.

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

1.3.3 on Windows

Please provide any additional information below.

This has made it a nightmare to find what should be obvious errors.

Original issue reported on code.google.com by cur...@tinbrain.net on 23 Sep 2014 at 3:37