Project

General

Profile

Actions

Feature #2841

closed

Dbo Postgres backend: Consider parsing booleans without throwing exceptions

Added by Bruce Toll almost 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
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

Actions #1

Updated by Bruce Toll almost 11 years ago

NOTE: Description and patch are based on github version 3.3.2-rc1-40-ge0e054f.

Actions #2

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
Actions #3

Updated by Koen Deforche over 10 years ago

  • Status changed from InProgress to Resolved
Actions #4

Updated by Koen Deforche over 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF