Fixed postgres invalid cast on Count() method #127

Merged
merged 4 commits into from Feb 8, 2012

Projects

None yet

2 participants

@jarrettmeyer
Contributor

Invalid cast from object to int on long data type.
This is tested against Npgsql 2.0.11.0 (current version available through Nuget)

jarrettmeyer added some commits Jan 28, 2012
@jarrettmeyer jarrettmeyer Fixes invalid cast exception on Postgres Count
The postgres count operation returns a long. Attempting to cast
directly from type object to int throws an invalid cast exception.
Casting first to a long, then casting to an int gets around this
error without changing the Massive API.
8c2d845
@jarrettmeyer jarrettmeyer added code comments f2228e9
@jarrettmeyer jarrettmeyer added code comments 271effa
@jarrettmeyer jarrettmeyer fixed comment typo 2501981
@robconery robconery merged commit f722f56 into FransBouma:master Feb 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment