Fix for #44 - Placeholder at the last position of statement causing crash

Patch received from Daniel Beaudoin (Optel Vision) on 23/07/2012)
Merge remote-tracking branch 'upstream/master'
Fixed #48 - Incorrect assertion in postgresql::get_error_details. Patch received from Fedor Trushkin.