Actions
Feature #2841
closedDbo Postgres backend: Consider parsing booleans without throwing exceptions
Start date:
03/22/2014
Due date:
% Done:
0%
Estimated time:
Description
The Dbo backend for Postgres currently depends on a bad_lexical_cast exception to parse boolean values. It seems to work fine, though it can generate a lot of exceptions in normal processing. In looking at another issue, I implemented a trivial patch to eliminate the exceptions by checking for the boolean case first. Unlike the current code, it won't handle upper-case "T" or "F", but I'm not sure how those would get returned by Postgres. In any case, I've attached the patch for your review. It has only been lightly tested.
Files
Updated by Bruce Toll over 10 years ago
NOTE: Description and patch are based on github version 3.3.2-rc1-40-ge0e054f.
Updated by Koen Deforche over 10 years ago
- Status changed from New to InProgress
- Assignee set to Koen Deforche
- Target version set to 3.3.3
Updated by Koen Deforche over 10 years ago
- Status changed from InProgress to Resolved
Updated by Koen Deforche over 10 years ago
- Status changed from Resolved to Closed
Actions