feedreader/FastLegS — Issue #1: exception when searching integer column for a string value
Author: ryanmeador
Created: 2011-12-07 04:21:53+00:00
State: open

In this case, I have a table with a normal "serial" primary key, and I erroneously tried to look up an item using a string. It explodes with this:

```
/home/rmeador/FeedReader/FeedReader/FastLegS/lib/fast_legs/base.js:82
results = _.isUndefined(result.rows[0]) ? null : result.rows[0];
^
TypeError: Cannot read property 'rows' of undefined
at /home/rmeador/FeedReader/FeedReader/FastLegS/lib/fast_legs/base.js:82:45
at [object Object].callback (/home/rmeador/FeedReader/FeedReader/FastLegS/lib/fast_legs/client.js:26:7)
at [object Object].handleError (/home/rmeador/FeedReader/FeedReader/FastLegS/node_modules/pg/lib/query.js:87:10)
at [object Object]. (/home/rmeador/FeedReader/FeedReader/FastLegS/node_modules/pg/lib/client.js:130:24)
at [object Object].emit (events.js:67:17)
at Socket. (/home/rmeador/FeedReader/FeedReader/FastLegS/node_modules/pg/lib/connection.js:47:12)
at Socket.emit (events.js:67:17)
at TCP.onread (net.js:327:14)```

This is not simply a result of it not returning any rows (in which case it returns null, as one would expect).